<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkWindowGroup</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GTK+ 3 参考手册">
<link rel="up" href="WindowWidgets.html" title="窗口">
<link rel="prev" href="gtk3-GtkWindow.html" title="GtkWindow">
<link rel="next" href="gtk3-GtkAboutDialog.html" title="GtkAboutDialog">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gtk3-GtkWindow.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="WindowWidgets.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ 3 参考手册</th>
<td><a accesskey="n" href="gtk3-GtkAboutDialog.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gtk3-GtkWindowGroup.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#gtk3-GtkWindowGroup.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gtk3-GtkWindowGroup"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gtk3-GtkWindowGroup.top_of_page"></a>GtkWindowGroup</span></h2>
<p>GtkWindowGroup</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gtk3-GtkWindowGroup.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gtk/gtk.h&gt;

struct              <a class="link" href="gtk3-GtkWindowGroup.html#GtkWindowGroup" title="struct GtkWindowGroup">GtkWindowGroup</a>;
<a class="link" href="gtk3-GtkWindowGroup.html#GtkWindowGroup" title="struct GtkWindowGroup"><span class="returnvalue">GtkWindowGroup</span></a> *    <a class="link" href="gtk3-GtkWindowGroup.html#gtk-window-group-new" title="gtk_window_group_new ()">gtk_window_group_new</a>                (<em class="parameter"><code><span class="type">void</span></code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkWindowGroup.html#gtk-window-group-add-window" title="gtk_window_group_add_window ()">gtk_window_group_add_window</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkWindowGroup.html#GtkWindowGroup" title="struct GtkWindowGroup"><span class="type">GtkWindowGroup</span></a> *window_group</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkWindow.html#GtkWindow" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkWindowGroup.html#gtk-window-group-remove-window" title="gtk_window_group_remove_window ()">gtk_window_group_remove_window</a>      (<em class="parameter"><code><a class="link" href="gtk3-GtkWindowGroup.html#GtkWindowGroup" title="struct GtkWindowGroup"><span class="type">GtkWindowGroup</span></a> *window_group</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkWindow.html#GtkWindow" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
<a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             <a class="link" href="gtk3-GtkWindowGroup.html#gtk-window-group-list-windows" title="gtk_window_group_list_windows ()">gtk_window_group_list_windows</a>       (<em class="parameter"><code><a class="link" href="gtk3-GtkWindowGroup.html#GtkWindowGroup" title="struct GtkWindowGroup"><span class="type">GtkWindowGroup</span></a> *window_group</code></em>);
<a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="gtk3-GtkWindowGroup.html#gtk-window-group-get-current-grab" title="gtk_window_group_get_current_grab ()">gtk_window_group_get_current_grab</a>   (<em class="parameter"><code><a class="link" href="gtk3-GtkWindowGroup.html#GtkWindowGroup" title="struct GtkWindowGroup"><span class="type">GtkWindowGroup</span></a> *window_group</code></em>);
<a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="gtk3-GtkWindowGroup.html#gtk-window-group-get-current-device-grab" title="gtk_window_group_get_current_device_grab ()">gtk_window_group_get_current_device_grab</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkWindowGroup.html#GtkWindowGroup" title="struct GtkWindowGroup"><span class="type">GtkWindowGroup</span></a> *window_group</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/GdkDevice.html"><span class="type">GdkDevice</span></a> *device</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="gtk3-GtkWindowGroup.description"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1">
<a name="gtk3-GtkWindowGroup.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GtkWindowGroup"></a><h3>struct GtkWindowGroup</h3>
<pre class="programlisting">struct GtkWindowGroup {
  GObject parent_instance;

  GtkWindowGroupPrivate *priv;
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-window-group-new"></a><h3>gtk_window_group_new ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkWindowGroup.html#GtkWindowGroup" title="struct GtkWindowGroup"><span class="returnvalue">GtkWindowGroup</span></a> *    gtk_window_group_new                (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a new <a class="link" href="gtk3-GtkWindowGroup.html#GtkWindowGroup" title="struct GtkWindowGroup"><span class="type">GtkWindowGroup</span></a> object. Grabs added with
<a class="link" href="gtk3-General.html#gtk-grab-add" title="gtk_grab_add ()"><code class="function">gtk_grab_add()</code></a> only affect windows within the same <a class="link" href="gtk3-GtkWindowGroup.html#GtkWindowGroup" title="struct GtkWindowGroup"><span class="type">GtkWindowGroup</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="gtk3-GtkWindowGroup.html#GtkWindowGroup" title="struct GtkWindowGroup"><span class="type">GtkWindowGroup</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-window-group-add-window"></a><h3>gtk_window_group_add_window ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_group_add_window         (<em class="parameter"><code><a class="link" href="gtk3-GtkWindowGroup.html#GtkWindowGroup" title="struct GtkWindowGroup"><span class="type">GtkWindowGroup</span></a> *window_group</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkWindow.html#GtkWindow" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
<p>
Adds a window to a <a class="link" href="gtk3-GtkWindowGroup.html#GtkWindowGroup" title="struct GtkWindowGroup"><span class="type">GtkWindowGroup</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>window_group</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkWindowGroup.html#GtkWindowGroup" title="struct GtkWindowGroup"><span class="type">GtkWindowGroup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
<td>the <a class="link" href="gtk3-GtkWindow.html#GtkWindow" title="GtkWindow"><span class="type">GtkWindow</span></a> to add</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-window-group-remove-window"></a><h3>gtk_window_group_remove_window ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_window_group_remove_window      (<em class="parameter"><code><a class="link" href="gtk3-GtkWindowGroup.html#GtkWindowGroup" title="struct GtkWindowGroup"><span class="type">GtkWindowGroup</span></a> *window_group</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkWindow.html#GtkWindow" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);</pre>
<p>
Removes a window from a <a class="link" href="gtk3-GtkWindowGroup.html#GtkWindowGroup" title="struct GtkWindowGroup"><span class="type">GtkWindowGroup</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>window_group</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkWindowGroup.html#GtkWindowGroup" title="struct GtkWindowGroup"><span class="type">GtkWindowGroup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
<td>the <a class="link" href="gtk3-GtkWindow.html#GtkWindow" title="GtkWindow"><span class="type">GtkWindow</span></a> to remove</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-window-group-list-windows"></a><h3>gtk_window_group_list_windows ()</h3>
<pre class="programlisting"><a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             gtk_window_group_list_windows       (<em class="parameter"><code><a class="link" href="gtk3-GtkWindowGroup.html#GtkWindowGroup" title="struct GtkWindowGroup"><span class="type">GtkWindowGroup</span></a> *window_group</code></em>);</pre>
<p>
Returns a list of the <a href="gtk3-GtkWindow.html#GtkWindow"><span class="type">GtkWindows</span></a> that belong to <em class="parameter"><code>window_group</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>window_group</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkWindowGroup.html#GtkWindowGroup" title="struct GtkWindowGroup"><span class="type">GtkWindowGroup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A
newly-allocated list of windows inside the group. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GtkWindow][<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.14</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-window-group-get-current-grab"></a><h3>gtk_window_group_get_current_grab ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_window_group_get_current_grab   (<em class="parameter"><code><a class="link" href="gtk3-GtkWindowGroup.html#GtkWindowGroup" title="struct GtkWindowGroup"><span class="type">GtkWindowGroup</span></a> *window_group</code></em>);</pre>
<p>
Gets the current grab widget of the given group,
see <a class="link" href="gtk3-General.html#gtk-grab-add" title="gtk_grab_add ()"><code class="function">gtk_grab_add()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>window_group</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkWindowGroup.html#GtkWindowGroup" title="struct GtkWindowGroup"><span class="type">GtkWindowGroup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the current grab widget of the group. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.22</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-window-group-get-current-device-grab"></a><h3>gtk_window_group_get_current_device_grab ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_window_group_get_current_device_grab
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkWindowGroup.html#GtkWindowGroup" title="struct GtkWindowGroup"><span class="type">GtkWindowGroup</span></a> *window_group</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/GdkDevice.html"><span class="type">GdkDevice</span></a> *device</code></em>);</pre>
<p>
Returns the current grab widget for <em class="parameter"><code>device</code></em>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if none.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>window_group</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkWindowGroup.html#GtkWindowGroup" title="struct GtkWindowGroup"><span class="type">GtkWindowGroup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
<td>a <a href="../gdk3/GdkDevice.html"><span class="type">GdkDevice</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The grab widget, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>